{extend name="layout/base" /}
{block name="main"}
<div class="news">
    <div class="container">
        <div class="index-title txt-c">
            <em>你的梦想我很在意 更支持</em>
            <div class="line">
                <h3>我的订单</h3>
            </div>
        </div>
        <div class="news-list c">
            <ul>
                <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bordercolor="#00FFFF"
                       style="border-collapse:collapse" class="newsline">
                    <tr>
                        <td bgcolor="#CCFFFF">序号</td>
                        <td bgcolor='#CCFFFF'>订单编号</td>
                        <td bgcolor='#CCFFFF'>客房名称</td>
                        <td bgcolor='#CCFFFF'>房间号</td>
                        <td bgcolor='#CCFFFF'>入住日期</td>
                        <td bgcolor='#CCFFFF'>离店日期</td>
                        <td bgcolor='#CCFFFF'>单价</td>
                        <td bgcolor='#CCFFFF'>总价</td>
                        <td bgcolor='#CCFFFF'>状态</td>
                        <td bgcolor='#CCFFFF'>预定时间</td>
                        <td align="center" bgcolor="#CCFFFF">操作</td>
                    </tr>
                    {foreach $orderList as $index => $order}
                    <tr style="height: 40px">
                        <td>{$index + 1}</td>
                        <td>{$order.order_no}</td>
                        <td>{$order.room_name}</td>
                        <td>{$order.room_number}</td>
                        <td>{$order.start_date}</td>
                        <td>{$order.end_date}</td>
                        <td>{$order.price}</td>
                        <td>{$order.total}</td>
                        <td>{$order.status_str}</td>
                        <td>{$order.create_time}</td>
                        <td align="center">
                            {if $order.status == 1}
                            <a href="/order/cancel?id={$order.id}">取消订单</a>
                            {/if}
                        </td>
                    </tr>
                    {/foreach}
                </table>

                <div class="fy"><a href="order?page=1">首页</a> <a href="order?page={$page-1}">前一页</a> <a
                        href="order?page={$page+1}">后一页</a> <a
                        href="order?page={$totalPage}">末页</a>
                    当前第{$page}页,共{$totalPage}页 以上数据共
                    {$total}条,
                </div>

            </ul>
        </div>

    </div>
</div>
{/block}
